package com.treasure.mall.biz.service.core.user;

/**
 * 
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.service.core.user
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/14 15:51
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.service.core.user Inc. All rights reserved.
 */
public interface MerchantShopFollowService {

    /**
     * 是否关注
     *
     * @param userId
     * @param merchantId
     * @return
     */
    boolean followed(Long userId, Long merchantId);


    /**
     * 关注数量
     *
     * @param merchantId
     * @return
     */
    long follows(Long merchantId);

    /**
     * 关注店铺
     *
     * @param userId
     * @param merchantId
     * @return
     */
    void follow(Long userId, Long merchantId);

    /**
     * 取消店铺关注
     *
     * @param userId
     * @param merchantId
     * @return
     */
    void unfollow(Long userId, Long merchantId);
}
